package com.jumper.study.admin.dto.req;

import jakarta.validation.constraints.NotBlank;

public class ApiReq {
    @NotBlank(message="未填写接口名称")
    private String title;

    @NotBlank(message="未填写接口链接")
    private String uri;

    @NotBlank(message="未选择接口方法")
    private String method;

    private String desc;
    
    private String group;
    
    public ApiReq() {
    }
    
    public ApiReq(String title, String uri, String method, String desc, String group) {
        this.title = title;
        this.uri = uri;
        this.desc = desc;
        this.group = group;
    }

    public String getTitle() {
        return title;
    }
    public void setTitle(String title) {
        this.title = title;
    }
    public String getUri() {
        return uri;
    }
    public void setUri(String uri) {
        this.uri = uri;
    }
    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getDesc() {
        return desc;
    }
    public void setDesc(String desc) {
        this.desc = desc;
    }
    public String getGroup() {
        return group;
    }
    public void setGroup(String group) {
        this.group = group;
    }
    
}
